﻿@model IEnumerable<NetSurveillance.WebApp.DataServices.Models.DataRecord>
@{
    Layout = null;
}
<style type="text/css">
    #tbIMFiles {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
    }
    #tbIMFiles thead tr th {
        text-align: left;
    }
    #tbIMFiles tbody td a {
        text-decoration: underline;
    }
    #tbIMFiles tbody td a:hover {
        color: orange;
        text-decoration: none;
    }
</style>
<table id="tbIMFiles">
    <thead>
        <tr>
            <th>主题</th>
            <th>创建时间</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @if (Model != null)
        {
            foreach (var dr in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(m => dr.Title)
                    </td>
                    <td>
                        @Html.DisplayFor(m => dr.CreatedTime)
                    </td>
                    <td>
                        <a href="@Url.Action("DownloadFile", "Task", new {drId = dr.Id})" title="下载文件">
                            下载文件
                        </a>
                    </td>
                </tr>
            }
        }
        else
        {
            <tr>
                <td colspan="3" style="text-align: center;">
                    无文件记录
                </td>
            </tr>
        }
    </tbody>
</table>